<!-- 一键呼叫 -->
<template>
	<view class="therepair">
		<cu-custom bgColor="bg-gradual-inmode" :isBack="false"><block slot="content">一键呼叫</block></cu-custom>
		<view class="t-icon t-icon-changpian"></view>
		<view class="grid col-5 padding-sm">
			<button class="cu-btn round bg-green hujiao" @click="go()">
				<view class="iconleft">
					<text class="cuIcon-dianhua "></text>
					<text class="">打电话</text>
				</view>
			</button>
		</view>
		<rich-html :richTextHtml="fuwenben"></rich-html>
	</view>
</template>

<script>
export default {
	data() {
		return {
			fuwenben:'<ol> <li>士大夫</li> <li>busdf</li> <li>你是地方那是的烦恼</li> <li>的风景</li> </ol> <p><strong>阿斯蒂芬数据的妇女</strong></p> <p><em><strong>阿斯蒂芬撒地方</strong></em></p>'
		};
	},
	methods: {
		async go() {
			uni.makePhoneCall({
				// 手机号
				phoneNumber: '4001208820',
				// 成功回调
				success: res => {
					console.log('调用成功!');
				},
				// 失败回调
				fail: res => {
					console.log('调用失败!');
				}
			});
		}
	}
};
</script>

<style>
.therepair {
}
.hujiao {
	width: 100vh;
	margin-top: calc(50% + 70rpx);
}
.cuIcon-dianhua {
	margin-right: 20rpx;
}
</style>
